package org.example.clouddemo.recommend.feign;


import org.example.clouddemo.bean.common.entity.Product;
import org.example.common.response.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "service-product", path = "/api/app/product")
public interface ProductFeignClient {

    @PostMapping("queryOne")
    ApiResult<Product> queryOne(@Validated @RequestBody Product param);


    @PostMapping("selectOrderByPriceDesc")
    ApiResult<List<Product>> selectOrderByPriceDesc();
}
